package com.alibaba.dubbo.remoting.transport.netty4;

import com.alibaba.dubbo.common.URL;
import com.alibaba.dubbo.remoting.*;

/**
 * Created by donghao on 16/8/22.
 */
public class Netty4Transporter implements Transporter{

    public static final String NAME = "netty4";


    public Server bind(URL url, ChannelHandler handler) throws RemotingException {
        return new Netty4Server(url,handler);
    }

    public Client connect(URL url, ChannelHandler handler) throws RemotingException {
        return new Netty4Client(url,handler);
    }
}
